-- GENERATED SPELL FOR [Cobalt Whelp] --


function spell0_10659(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(15089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10659', 8309, 1)
end

function spell1_10659(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10659', 15000, 1)
end

function Sorts_10659(pUnit, Event)
local choix_sorts_10659 = math.random(0, 1)
if choix_sorts_10659 == 0 then
pUnit:RegisterEvent('spell0_10659', 1, 1)
end
if choix_sorts_10659 == 1 then
pUnit:RegisterEvent('spell1_10659', 1, 1)
end
end

function mob10659_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10659', math.random(1500, 3000), 1)
end

function mob10659_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10659_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10659_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10659, 1, 'mob10659_Action')
RegisterUnitEvent(10659, 2, 'mob10659_Leave')
RegisterUnitEvent(10659, 3, 'mob10659_Kill')
RegisterUnitEvent(10659, 4, 'mob10659_Die')
